package com.qf06;

public class SubMoney implements Runnable{
    private BankCard card;

    public SubMoney(BankCard card) {
        this.card = card;
    }
    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            card.take(1000);
        }
    }
}
